home *** CD-ROM | disk | FTP | other *** search
- // Displays a single window
-
- #include <conio.h>
- #include "tfsounit.h"
- #include "keybrd.h"
-
- main()
- {
- clrscr();
- Tfso T(0x31, Swappable+WithShadow+Closeable, RedColors);
- T.SetSize(40, 15);
- T.SetLocn(10, 5);
- T.GetImage(T.Overall); // Save image behind window
- T.DrawFrame(0,0);
- T.DrawShadows(T.Overall, GetIm, 1);
- T.Clear(177, 0);
- T.HzWrt(0, 0, "Window 1", 0);
- T.HzWrt(0, 1, "Line 1", 0);
- bioskey(0);
- T.Scroll(UpScroll, 1); // Scroll up one line
- T.Fill(0,14,40,1,177,0); // Fill with blank line
- bioskey(0);
- T.Swap(T.Overall, PutIm); // Hide the window
- bioskey(0);
- T.SetLocn(30, 6); // Change window's position
- T.Swap(T.Overall, GetIm); // Re-display the window
- }
-